<script>
export default {
  name: "travelLog",
  data() {
    return {
      config: {
        header: ['人员', '通行时间'],
        data: [
          ['王五', '2019-07-01 19:25:00'],
          ['赵六', '2019-07-02 17:25:00'],
          ['朗朗', '2019-07-04 15:25:00'],
          ['王博', '2019-07-05 14:25:00'],
          ['王五', '2019-07-01 19:25:00'],
          ['赵六', '2019-07-02 17:25:00'],
          ['朗朗', '2019-07-04 15:25:00'],
          ['王博', '2019-07-05 14:25:00'],
          ['王五', '2019-07-01 19:25:00'],
          ['赵六', '2019-07-02 17:25:00'],
          ['朗朗', '2019-07-04 15:25:00'],
          ['王博', '2019-07-05 14:25:00'],
        ],
        index: true,
        columnWidth: [100, 200],
        align: ['center'],
        rowNum: 7,
        headerBGC: '#1981f6',
        headerHeight: 45,
        oddRowBGC: 'rgba(0, 44, 81, 0.8)',
        evenRowBGC: 'rgba(10, 29, 50, 0.8)'
      }
    }
  }
}
</script>

<template>
  <div class="box">
    <div class="title">通信记录</div>
    <div class="lampData">
      <dv-scroll-board :config="config"/>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.box {
  width: 100%;
  height: 100%;
  overflow: hidden;

  .title {
    height: 2rem;
    text-align: center;
    color: #ffffff;
  }

  .lampData {
    height: calc(100% - 2rem);
  }
}
</style>
